x86/cpuidle: publish new states only after fully initializing them
authorJan Beulich <jbeulich@suse.com>
Wed, 11 Dec 2013 09:30:02 +0000 (10:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Dec 2013 09:30:02 +0000 (10:30 +0100)
commit4ca6f9f0377a30755a299cc60a6d44ab6c3b34d0
treec3f7500bef7f31b349f5dd02085a6526d26da1ab
parent522277bf802b40da921e0fc69c7f7fcd093126d4
x86/cpuidle: publish new states only after fully initializing them

Since state information coming from Dom0 can arrive at any time, on
any CPU, we ought to make sure that a new state is fully initialized
before the target CPU might be using it.

Once touching that code, also do minor cleanup: A missing (but benign)
"break" and some white space adjustments.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Liu Jinsong <jinsong.liu@intel.com>
xen/arch/x86/acpi/cpu_idle.c